<!doctype html>
<html class="no-js fixed-layout">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>波奇后台管理</title>
  <meta name="description" content="这是一个 index 页面">
  <meta name="keywords" content="index">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="/public/static/assets/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="/public/static/assets/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="/public/static/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="/public/static/assets/css/admin.css"> 
  <link rel="stylesheet" href="/public/static/assets/css/bootstrap.css">
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="/public/static/assets/css/bootstrap.min.css" rel="stylesheet">
  <!-- <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script> -->
  <script src="/public/static/assets/js/bootstrap.min.js"></script>

</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header">
  <div class="am-topbar-brand">
    <strong>admin</strong> <small>后台管理</small>
  </div>

  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
      <li class="am-dropdown" data-am-dropdown>
        <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
          <span class="am-icon-users"></span> 管理员 <span class="am-icon-caret-down"></span>
        </a>
        <ul class="am-dropdown-content">
          <li><a href="{:url('admin/Person/index')}"><span class="am-icon-user"></span> 资料</a></li>
          <li><a href="#"><span class="am-icon-cog"></span> 设置</a></li>
          <li><a href="javascript:void(0);"  id='loginO'><span class="am-icon-power-off"></span> 退出</a></li>
        </ul>
      </li>
      <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
    </ul>
  </div>
</header>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">

        <li><a href="{:url('admin/Home/index')}"><span class="am-icon-home"></span> 首页</a></li>
      
        <li><a href="{:url('admin/User/index')}"><span class="am-icon-user "></span>用户管理</a></li>
        
        <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-nav'}"><span class="am-icon-file"></span>板块管理<span class="am-icon-angle-right am-fr am-margin-right"></span></a>

          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav">

            <li><a href="{:url('admin/Category/index')}" class="am-cf"><span class="am-icon-th"></span>论坛板块<span class=" am-fr am-margin-right admin-icon-yellow"></span></a></li>
       

            <li><a href="{:url('admin/Category/add')}"><span class="am-icon-pencil-square-o">板块添加</span></a></li>
        
          </ul>
        </li>



          <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-na'}"><span  class="am-icon-user "></span>权限管理<span class="am-icon-angle-right am-fr am-margin-right"></span></a>
          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-na">
            <li><a href="{:url('admin/Jurisdiction/index')}" class="am-cf"><span class="am-icon-user"></span>后台管理员<span class=" am-fr am-margin-right admin-icon-yellow"></span></a></li>
       

            <li><a href="{:url('admin/Role/index')}"><span class="am-icon-pencil-square-o">职位管理</span></a></li>
            <li><a href="{:url('admin/Node/index')}"><span class="am-icon-pencil-square-o">节点管理</span></a></li>

        
          </ul>
        </li>
         

            <li><a href="{:url('admin/Links/lst')}"><span class="am-icon-calendar"></span> 友情链接管理</a></li>
            <li><a href="{:url('admin/Notice/index')}"><span class="am-icon-calendar"></span> 管理员公告管理</a></li>
            <li><a href="{:url('admin/Looop/index')}"><span class="am-icon-calendar"></span> 轮播图管理</a></li>
            <li><a href="{:url('admin/Star/index')}"><span class="am-icon-calendar"></span> 版头明星管理</a></li>

 
        </ul>
<!--  -->

    </div>
  </div>
  <!-- sidebar end -->
  {block name="main"}



  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">首页</strong> / <small>Homepage</small></div>
      </div>

      <ul class="am-avg-sm-1 am-avg-md-4 am-margin am-padding am-text-center admin-content-list ">
        <li><a  class="am-text-success"><span class="am-icon-btn am-icon-file-text"></span><br/>今日文章新增<br/>{$count2}</a></li>
        <li><a  class="am-text-success"><span class="am-icon-btn am-icon-file-text"></span><br/>总贴数量<br/>{$count}</a></li>
        <li><a  class="am-text-danger"><span class="am-icon-btn am-icon-user-md"></span><br/>今日用户新增<br/>{$count3}</a></li>
        <li><a  class="am-text-secondary"><span class="am-icon-btn am-icon-user-md"></span><br/>所有用户<br/>{$count1}</a></li>
      </ul>

      <div class="am-g">
        <div class="am-u-sm-12">
          
        </div>
      </div>

      <div class="am-g">
        <div class="am-u-md-6">
          <div class="am-panel am-panel-default">

            <div class="am-panel-hd am-cf" data-am-collapse="{target: '#collapse-panel-1'}">管理员公告<span class="am-icon-chevron-down am-fr" ></span></div>

            <div class="am-panel-bd am-collapse am-in" id="collapse-panel-1">
              <ul class="am-list admin-content-file">
                
                   <p><span class="am-icon-bookmark"></span> 公告</p>
                <li>
                    {volist name='no' id='v'}
                    <p>{$v.content}</p>
                  <!-- <strong><span class=""></span></strong> -->
                    {/volist}
                </li>
              </ul>
            </div>
          </div>

        </div>

        <div class="am-u-md-6">
          <div class="am-panel am-panel-default">
            <div class="am-panel-hd am-cf" data-am-collapse="{target: '#collapse-panel-4'}">天气<span class="am-icon-chevron-down am-fr" ></span></div>
            <div id="collapse-panel-4" class="am-panel-bd am-collapse am-in">
              <ul class="am-list admin-content-task">
                <li>

                  <div class="container">
                       <form>
                          请输入城市:
                          <input type="text" name="city" value="<?php echo $cityName?>">
                        </form>
                      <?php if (empty($obj->Weather)):echo '查无数据'; ?>
                      <?php else: ?>
          
          
                            <table width="1000">
                                <tr>
                                    <td>城市:</td>
                        
                                    <td>{$obj->Weather->city}</td>
                                </tr>
                                <tr>
                                    <td>天气:</td>
                                    <td>
                                        {$obj->Weather->status1} 转 
                                        {$obj->Weather->status2}
                                    </td>
                                </tr>
                                <tr>
                                    <td>气温:</td>
                                    <td>
                                        {$obj->Weather->temperature2}℃ ~ 
                                        {$obj->Weather->temperature1}℃
                                    </td>
                                </tr>
                                <tr>
                                    <td>感冒提醒:</td>
                                    <td>
                                        {$obj->Weather->gm_s}
                                    </td>
                                </tr>
                                <tr>
                                    <td>更新时间:</td>
                                    <td>
                                        {$obj->Weather->udatetime}
                                    </td>
                                </tr>
                            </table>
                                <?php endif ?>


                        

                    </div>
                </li>
                
              </ul>
            </div>
          </div>

      
        </div>
      </div>
    </div>

    <footer class="admin-content-footer">
      <hr>
   
    </footer>
  </div>
  <!-- content end -->

</div>


<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>
{/block}
   
<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/public/static/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/public/static/assets/js/amazeui.min.js"></script>
<script src="/public/static/assets/js/app.js"></script>
<script src="/public/static/assets/js/bootstrap.js"></script>

<script>
    $('#loginO').click(function() {
      if(confirm('确定退出吗?')){
         location.href="{:url('admin/Userlr/loginO')}";
      }else{
          location.href="#";
      }
    });
</script>

</body>
</html>
